package cn.itsource.product.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.product.domain.Product;
import cn.itsource.product.domain.ProductDetail;

import java.util.List;

public interface ProductMapper extends BaseMapper<Product>{

    List<ProductDetail> getProductDetail(Long id);

    void onsale( List<Product> products);

    void offsale(List<Product> products);

    Product getProductById(Long id);

    void batchRemove(List<Product> products);
}
